
import Home from '@/components/Home.vue'
import Login from '@/components/Login.vue'
import BaseInstitue from '@/components/base/baseInstitue.vue'
import BaseTable from '@/components/temp/BaseTable.vue'
import BaseTable2 from '@/components/temp/BaseTable2.vue'
import Institute from '../components/base/institute/BaseInstituteTable.vue'
import Institute2 from '../components/base/institute/Institute.vue'

import BaseApplication from '../components/base/application/BaseApp.vue'
import BaseSignature from '../components/base/signature/BaseSignature.vue'
import BaseSmsTemplate from '../components/base/smsTemplate/BaseSmsTemplate.vue'
import Price from '../components/base/price/Price.vue'
import Message from '../components/message/Message.vue'
import RealApp from '../components/real/app/RealApp.vue'
import AppAdd from '../components/real/add/appAdd/AppAdd.vue'
import SigAdd from '../components/real/add/sigAdd/SigAdd.vue'
import TempAdd from '../components/real/add/tempAdd/TempAdd.vue'
import AppAddVue from '../components/real/insert/appAdd/Institute.vue'
import SigAddVue from '../components/real/insert/sigAdd/AppAddSig.vue'
import TempAddVue from '../components/real/insert/tempAdd/AppAddTemp.vue'


import App from '../App.vue'


let routes = [
    {
        path: '/',
        component: Login,
        name: '',
        hidden: true,
    },
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true,
    },
    {
        path: '/home',
        component: Home,
        name: '',
        hidden: true,
        meta: { authType: 'admin' },
    },

    {
        path: '/home',
        component: Home,
        name: '基础数据管理',
        iconType: 'ios-navigate',//图标样式class
        meta: { authType: 'admin' },
        children: [
            { path: '/home/inst', component: Institute, name: '学院管理', hidden: true, meta: { authType: 'admin' }, },
            //{ path: '/home/hello', component: Institute, name: '学院', hidden: true, meta: { authType: 'admin' }, },
            { path: '/home/base/app', component: BaseApplication, name: '基础应用管理', hidden: true, meta: { authType: 'admin' }, },
            { path: '/home/base/sig', component: BaseSignature, name: '基础签名管理', hidden: true, meta: { authType: 'admin' }, },
            { path: '/home/base/temp', component: BaseSmsTemplate, name: '基础模板管理', hidden: true, meta: { authType: 'admin' }, },
            { path: '/home/base/price', component: Price, name: '短信单价管理', hidden: true, meta: { authType: 'admin' }, },
        ]
    },
    {
        path: '/home',
        component: Home,
        name: '实际数据管理',
        iconType: 'ios-keypad',//图标样式class
        meta: { authType: 'admin' },
        children: [
            { path: '/home/real/app', component: RealApp, name: '实际应用', hidden: true, meta: { authType: 'admin' }, },
            // { path: '/home/real/add/app', component: AppAdd, name: '添加实际应用', hidden: true, meta: { authType: 'admin' }, },
            // { path: '/home/real/add/sig', component: SigAdd, name: '添加短信签名', hidden: true, meta: { authType: 'admin' }, },
            // { path: '/home/real/add/temp', component: TempAdd, name: '添加短信模板', hidden: true, meta: { authType: 'admin' }, },
            { path: '/home/real/add/ins', component: AppAddVue, name: '添加应用', hidden: true, meta: { authType: 'admin' }, },
            { path: '/home/real/insert/sig', component: SigAddVue, name: '添加短信签名', hidden: true, meta: { authType: 'admin' }, },
            { path: '/home/real/insert/temp', component: TempAddVue, name: '添加短信模板', hidden: true, meta: { authType: 'admin' }, },
        ]
    },
    {
        path: '/home',
        component: Home,
        name: '短信流水管理',
        iconType: 'ios-analytics',//图标样式class
        meta: { authType: 'admin' },
        children: [
            { path: '/home/message', component: Message, name: '短信流水', hidden: true, meta: { authType: 'admin' }, },

        ]
    },
];

export default routes;